package com.zlc.common.common.constant;

import com.zlc.common.annotation.SysRedisConstant;
import com.zlc.common.annotation.SysRedisKeyConstant;

@SysRedisConstant(systemCode = "UC", systemName = "中控平台")
public class PlatformRedisConstant {

    //redis 跟目录
    public static final String MAYAN_PLATFORM_REDIS_BASE_KEY = "mayan:platform:";

    @SysRedisKeyConstant(desc = "存储用户登录令牌")
    public static final String MAYAN_PLATFORM_LOGIN_USER_TOKEN = MAYAN_PLATFORM_REDIS_BASE_KEY + "login:user:token:";

    @SysRedisKeyConstant(desc = "存储用户登录信息")
    public static final String MAYAN_PLATFORM_LOGIN_USER = MAYAN_PLATFORM_REDIS_BASE_KEY + "login:user:info:";

    @SysRedisKeyConstant(desc = "存储在线用户列表")
    public static final String MAYAN_PLATFORM_LOGIN_CACHE = MAYAN_PLATFORM_REDIS_BASE_KEY + "login:user:cache:";

    @SysRedisKeyConstant(desc = "存储系统资源信息")
    public static final String MAYAN_SYSTEM_RESOURCE_CACHE = MAYAN_PLATFORM_REDIS_BASE_KEY + "system:resource:cache";

    @SysRedisKeyConstant(desc = "存储登录用户系统资源信息")
    public static final String MAYAN_SYSTEM_MY_RESOURCE_CACHE = MAYAN_PLATFORM_REDIS_BASE_KEY + "system:my:resource:cache:";

    @SysRedisKeyConstant(desc = "用户登录失败次数缓存")
    public static final String MAYAN_USER_LOGIN_ERROR_COUNT = MAYAN_PLATFORM_REDIS_BASE_KEY + "login:error:count:";

    @SysRedisKeyConstant(desc = "登录失败走验证码标记")
    public static final String MAYAN_USER_LOGIN_CHECK_CODE = MAYAN_PLATFORM_REDIS_BASE_KEY + "login:check:code:";
}
